package day050626;

public class Test6 {
    public static void main(String[] args) {
        //1 2 3 4 5
        int num=5;
        int rs=1;
        for(int i=1;i<=num;i++){
            rs=i*rs;
        }
        System.out.println("阶乘结果是：" +rs);
    }
}
